package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.SServiceOrderTrail;
import cn.huiyunche.base.service.vo.ServiceOrderTrailVo;

public interface SServiceOrderTrailService {

    /**
     * 添加服务订单物流信息
     *
     * @param trail
     * @return
     * @throws Exception
     */
    Long add(SServiceOrderTrail trail) throws Exception;

    /**
     * 根据服务订单ID查询物流信息
     *
     * @param serviceOrderId
     * @return
     * @throws Exception
     */
    ServiceOrderTrailVo selectTrailByServiceOrderId(Long serviceOrderId) throws Exception;

    /**
     * @param serviceOrderId 服务订单id
     * @param type           信息类型（状态或位置）
     * @Title: getNewest
     * @Description: 查询最新物流信息
     * @return: SServiceOrderTrail
     */
    SServiceOrderTrail getNewest(long serviceOrderId, int type);

    /**
     * Delete int.
     *
     * @param serviceOrderId the service order id
     * @return the int
     */
    int delete(Long serviceOrderId);
}
